public class PropertiesMain
{
	//inicio da aplicacao
	public static void main(String args[])
	{	
		System.out.println(PropertiesLoaderImpl.getValor("conta_saldo") );
		System.out.println(PropertiesLoaderImpl.getValor("leilao_tipo") );
		
		ClassLoader classLoader = PropertiesMain.class.getClassLoader();
		if (PropertiesLoaderImpl.getValor("leilao_tipo").equals("comum")){
			try {
				Class aClass = classLoader.loadClass("Leilao");
				System.out.println("aClass.getName() = " + aClass.getName());
			} catch (ClassNotFoundException e) {
				e.printStackTrace();
			}
		}
		else if (PropertiesLoaderImpl.getValor("leilao_tipo").equals("reverso")){
			try {
				Class aClass = classLoader.loadClass("LeilaoReverso");
				System.out.println("aClass.getName() = " + aClass.getName());
			} catch (ClassNotFoundException e) {
				e.printStackTrace();
			}
		}

		
	}	

}
